﻿using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ProjectA.Page_Login;
using ProjectA.Page_General;
using System.Threading;
using ProjectA.Controls;

namespace ProjectA
{
    public partial class frmPrincipal : Form
    {
        //Pages
        public cPage_Login cPage_Login { get; set; }
        public cPage_General cPage_General { get; set; }

        public formLoadcs frmLoad { get; set; } 

        public frmPrincipal()
        {

            InitializeComponent();
            this.AllowTransparency = true;
            cPage_Login = new cPage_Login(this);
            cPage_General = new cPage_General(this);
            frmLoad = new formLoadcs();

            cPage_Login.TabIndex = 1;
            cPage_General.TabIndex = 0;

            cPage_General.Visible = false;

            Controls.Add(cPage_General);
            Controls.Add(cPage_Login);
            
            this.Invalidate();
            this.Update();

            this.StartPosition = FormStartPosition.CenterScreen;

            this.frmLoad.ShowIcon = false;
            this.frmLoad.ShowInTaskbar = false;
            this.frmLoad.TopMost = true;
            this.frmLoad.StartPosition = FormStartPosition.CenterScreen;
        }

        private void frmPrincipal_Load(object sender, EventArgs e)
        {
            //this.BackColor = Color.FromArgb(0, 0, 0, 0);
            this.Refresh();
        }
    }
}
